package cn.mazexal.exambg.dataware;

import cn.mazexal.exambg.models.db.TagDO;

import cn.mazexal.exambg.models.qry.TagQry;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
*   Mapper
*
*/
@Mapper
public interface TagMapper extends BaseMapper<TagDO> {


    List<TagDO> selectTagList(@Param("qry") TagQry qry);

    int selectTagCount(@Param("qry") TagQry qry);

    List<TagDO> getTagByNames(@Param("tags") List<String> tags,  @Param("examBankId")Long examBankId);

    int checkTagExist(@Param("tagName") String tagName, @Param("examBankId") Long examBankId);
}